import request from '../../../utils/request'

class EquipmentEditApi {
  getDquipmenttableD(data) {
    return request({
      url: '/equipmenttable/detailById',
      method: 'post',
      data:data
    })
  }

  queryByCond(data, pageSize, pageNum) {
    return request({
      url: `/groupinfo/queryByCond?pageSize=${pageSize}&pageNum=${pageNum}`,
      method: 'post',
      data
    })
  }
  equipmentcheckAdd(data) {
    return request({
      url: `/equipmentcheck/add`,
      method: 'post',
      data
    })
  }
  equipmentcheckByCond(data, pageSize, pageNum) {
    return request({
      url: `/equipmentcheck/queryByCond?pageSize=${pageSize}&pageNum=${pageNum}`,
      method: 'post',
      data
    })
  }
  getEquipmenttableAllType() {
    return request({
      url: `/equipmenttable/AllType`,
      method: 'get',
    })
  }
  equipmenttableByCond(data, pageSize, pageNum){
    return request({
      url: `/equipmenttable/queryByCond?pageSize=${pageSize}&pageNum=${pageNum}`,
      method: 'post',
      data
    })
  }
  equipmenttableDetail(id){
    return request({
      url: `/equipmenttable/detail?id=${id}`,
      method: 'get',
    })
  }
  equipmenttableCheckDetail(id){
    return request({
      url: `/equipmentcheck/detail?id=${id}`,
      method: 'get',
    })
  }

}

export default new EquipmentEditApi()
